package cn.xmkeshe.dao;

import cn.xmkeshe.model.Comment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ICommentDao {

  @Insert("insert into comment(comment,type)values (#{comment},#{type})")
  public boolean comment(Comment comment);

  @Select("select * from comment where type = 1")
  public List<Comment> findAll();

  @Select("select * from comment where type = 2")
  public List<Comment> findAllStaff();
}
